const namespaced = true

const state = {
  language: 'zh',
  phone: '',
  email: 'luozewei123@qq.com',
  dumb: false,
  phoneValidate: true,
  emailValidate: true,
}

const mutations = {
  SETDATA(state, data) {
    Object.assign(state, data)
  },
}

const actions = {
  setData({ commit }, data) {
    commit('SETDATA', data)
  },
}

export default { namespaced, state, mutations, actions }
